package com.edu.cdp.exception;


import com.edu.cdp.common.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalException {
    @ExceptionHandler(Exception.class)
    public Result exception(Exception ex) {
        ex.printStackTrace();

        return Result.error("操作失败");
    }
}
